package com.yuand.exception;

import lombok.Data;

/**
 * @author yuandong
 * @company KB
 * @create 2022-01-24 13:16
 */
@Data
public class ServiceException  extends RuntimeException{

	private static final long serialVersionUID = 1L;

	/**
	 * 错误码
	 */
	private Integer code;

	/**
	 * 错误提示
	 */
	private String message;

	public ServiceException(){}


	public ServiceException(String msg){
		this.message=msg;
	}

	public ServiceException(Integer code,String message){
		this.message = message;
		this.code = code;
	}

}
